import request from "@/utils/request";
import { parseStrEmpty } from "@/utils/ruoyi";

// 上游渠道（全局）采量城市屏蔽新增
export function add(data) {
  return request({
    url: "/config/pickShieldCity/v1.0.0/add",
    method: "post",
    data: data,
  });
}

// 上游渠道（全局）采量城市屏蔽删除
export function deleteByCityCode(cityCode) {
  return request({
    url: "/config/pickShieldCity/v1.0.0/deleteByCityCode",
    method: "get",
    params: {
       cityCode: parseStrEmpty(cityCode),
    },
  });
}

// 上游渠道（全局）采量城市屏蔽列表查询
export function queryCityConfigByPage(data) {
  return request({
    url: "/config/pickShieldCity/v1.0.0/queryCityShieldList",
    method: "post",
    data: data,
  });
}
